package com.hualan.service.impl;

import com.hualan.domain.LevelAndGood;
import com.hualan.domain.Teacher;
import com.hualan.domain.TeacherAndGood;
import com.hualan.mapper.TeacherGoodMapper;
import com.hualan.service.TeacherGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherGoodImpl implements TeacherGoodService {
    @Autowired
    public TeacherGoodMapper teacherGoodMapper;

    @Override
    public List<TeacherAndGood> selectTeacherByGoodname(int id) {
        return teacherGoodMapper.selectTeacherByGoodname(id);
    }

    @Override
    public List<Teacher> selectTeacherByLevelGood(String level, String good) {
        return teacherGoodMapper.selectTeacherByLevelGood(level,good);
    }

    @Override
    public List<Teacher> selectTeacherByLevelGoodAddress(String level, String good, String address) {
        return teacherGoodMapper.selectTeacherByLevelGoodAddress(level, good, address);
    }
}
